import request from '@/utils/request'

export const ExpressApi = {

  /**
   *  分页
   * @returns
   */
  getPage: (data) => {
    return request({
      url: '/manage/mall/express/getPage',
      data,
      method: 'post'
    })
  },

  /**
   *  获取所有类型
   * @returns
   */
  getAllList: () => {
    return request({
      url: '/manage/mall/express/getAllList',
      method: 'get'
    })
  },

  /**
   *  删除
   * @returns
   */
  delete: (expressId) => {
    return request({
      url: '/manage/mall/express/delete',
      params:{expressId},
      method: 'get'
    })
  },

  /**
   *  更新
   * @returns
   */
  edit: (data) => {
    return request({
      url: '/manage/mall/express/edit',
      data,
      method: 'post'
    })
  },

  /**
   *  插入
   * @returns
   */
  add: (data) => {
    return request({
      url: '/manage/mall/express/add',
      data,
      method: 'post'
    })
  }

}
